package com.yegs.jltqc.dao;

import com.yegs.jltqc.VO.Formwork;
import com.yegs.jltqc.VO.Report;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ReportRepository extends JpaRepository<Report,Long> {

    Page<Report> findReportByName(String name, Pageable pageable);

    Report findFirstByIdAfterAndMold(Long id, String mold);

    Report findFirstByIdBeforeAndMoldOrderByIdDesc(Long id, String mold);

    Report findFirstByMoldOrderById(String mold);

    Report findFirstByMoldOrderByIdDesc(String mold);


}
